package com.bng8.superstar_cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bng8.superstar_cms.domain.common.PageQuery;
import com.bng8.superstar_cms.domain.common.PageResult;
import com.bng8.superstar_cms.domain.dto.SupMissionDTO;
import com.bng8.superstar_cms.domain.dto.SupMissionQueryDTO;
import com.bng8.superstar_cms.domain.entity.SupMissionDO;

import java.util.List;

/**
 * @author 20393
 * @description 针对表【sup_mission(任务明细表)】的数据库操作Service
 * @createDate 2023-08-17 11:22:19
 */
public interface SupMissionService extends IService<SupMissionDO> {
    /**
     * 分页查询任务信息
     *
     * @param pageQuery
     * @return
     */
    PageResult<List<SupMissionDTO>> query(PageQuery<SupMissionQueryDTO> pageQuery);

    int save(SupMissionDTO missionDTO);

    int update(String id, SupMissionDTO missionDTO);

    int deleteById(String id);
}
